<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./../../admin/css/menu.css">
    <script src="./../../admin/layui/layui.js" charset="utf-8"></script>
    <title>Document</title>
</head>
<body>
<div class="demoTable">
    搜索ID：
    <div class="layui-inline">
        <input class="layui-input" name="id" id="demoReload" autocomplete="off">
    </div>
    <button class="layui-btn" data-type="reload">搜索</button>
</div>
<table class="layui-hide" id="test" lay-filter="test"></table>
<script type="text/html" id="switchTpl">
    <!-- 这里的 checked 的状态只是演示 -->
  <input type="checkbox" name="status" value="{{d.m_id}}" lay-skin="switch" lay-text="开|关" lay-filter="status" {{ d.m_status == true ? 'checked' : '' }}>
</script>
<script type="text/html" id="toolbarDemo">
    <div class="layui-btn-container">
    <button class="layui-btn layui-btn-sm" lay-event="getCheckData">新增菜单</button>
  </div>
</script>

<script type="text/html" id="barDemo">
    
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>

</body>
</html>
<script>
        layui.config({
            base: './../../admin/js/', //假设这是你存放拓展模块的根目录
            version:"1.0.1"
        }).use("menu");
</script>